
<!-- 
   黄色loading加载条，mint-ui引用，

-->
<template>
    <div></div>
</template>
<script>
import './loadingBar.less';
import { Indicator } from 'mint-ui';
export default {
    name: 'loadingBar',
    props: {
        loadingType: { //调整暂无数据图片的位置
            type: String,
        },
    },
    data() {
        return {
        }
    },
    mounted: function(){
        
        //如果是蓝色的loading，添加blue class
        if( this.loadingType == 'blue'){

            // debugger

            //获取loading节点
            let $el = document.getElementsByClassName('mint-indicator')[0].getElementsByClassName('mint-spinner-snake')[0];

            let $el_cla = $el.className;

            $el.className = $el_cla + ' blue';
        }
    },
    methods:{
        close() {
            Indicator.close();
        },
        open() {
            Indicator.open()
        },
    }
}
</script>

